package org.abc.fund.controller.funds;

import org.abc.fund.dto.FundProfileDTO;
import org.abc.fund.service.funds.FundProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/fund-profile")
public class FundProfileController {

    @Autowired
    private FundProfileService fundProfileService;

    @GetMapping("/{code}")
    public FundProfileDTO getFundProfile(@PathVariable String code) {
        return fundProfileService.getProfile(code);
    }
}
